package com.gjy.akka.simple;

import akka.actor.AbstractActor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-09-03 15:52:01
 */
public class Greeter extends AbstractActor {
    private static final Logger log = LoggerFactory.getLogger(Greeter.class);

    @Override
    public Receive createReceive() {
        return receiveBuilder()
                .match(String.class, msg -> log.info("Hello: {}", msg))
                .build();
    }

}
